Skip to content

Add @wordpress/hooks as an available external#127

Merged
ahmadawais merged 1 commit into
CommandCodeAI:masterfrom
jeremyfelt:patch-1
Dec 22, 2018
Merged

Add @wordpress/hooks as an available external#127
ahmadawais merged 1 commit into
CommandCodeAI:masterfrom
jeremyfelt:patch-1

Conversation

@jeremyfelt
Copy link
Copy Markdown

When implementing a block, it would be helpful to have access to the applyFilters and withFilters provided by Gutenberg.

For example:

import {
	applyFilters,
} from '@wordpress/hooks';

const getSomething = function() {
	return applyFilters( 'blocks.myBlock.getSomething', 'defaultvalue' );
}

When implementing a block, it would be helpful to have access to the `applyFilters` and `withFilters` provided by Gutenberg.
Copy link
Copy Markdown
Member

@ahmadawais ahmadawais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 🔥

@ahmadawais ahmadawais merged commit 3cbbe1b into CommandCodeAI:master Dec 22, 2018
@ahmadawais
Copy link
Copy Markdown
Member

Thank you. cgb-scripts: 1.13.0 => 1.14.0 published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants